<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="box"></div>
		<script>
			var box = document.getElementById('box')
			for(i = 1; i < 10; i++){
				for(j = 1; j <= i; j++){
					var math = `${i} * ${j} = ${i*j} `
					box.innerHTML += math
				}
				box.innerHTML += "<br>"
			}
			let nums = [5,10,20];
			let sum = nums[1] + nums.sort()[1];
			console.log(nums.sort())
			console.log(sum); //30
			// function Person() {}
			//  let p1 = new Person()
			//  Person.prototype = {
			// 	 constructor:Person,
			// 	 name:'123',
			// 	 age: '18',
			// 	 getName(){
			// 		 console.log(this.name)
			// 	 }
			//  }
			//  p1.getName() //报错
		</script>
	</body>
</html>
